package com.testmanager.testmananger.tools.web;

import com.testmanager.testmananger.tools.promotionSign.SignDto;
import com.testmanager.testmananger.tools.promotionSign.SignResultDto;
import com.testmanager.testmananger.tools.promotionSign.SignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/tools")
public class PromotionSignResource {

    @Autowired
    SignService signService;
    @PostMapping("promotionSign")
    public SignResultDto promotionSign(@RequestBody SignDto signDto) throws Exception{
        return signService.sign(signDto);
    }

}



